package com.ruoyi.zyt.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 推文数据对象 news
 * 
 * @author zyt
 * @date 2023-11-18
 */
public class News extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @Excel(name = "id")
    private Long id;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 图片 */
    @Excel(name = "图片")
    private String pic;

    /** 推文 */
    @Excel(name = "推文")
    private String net;

    /** 发文时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发文时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    /** 简介 */
    @Excel(name = "简介")
    private String jianjie;

    private String netShow;

    public String getNetShow() {
        return netShow;
    }

    public void setNetShow(String netShow) {
        this.netShow = netShow;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setPic(String pic) 
    {
        this.pic = pic;
    }

    public String getPic() 
    {
        return pic;
    }
    public void setNet(String net) 
    {
        this.net = net;
    }

    public String getNet() 
    {
        return net;
    }
    public void setTime(Date time) 
    {
        this.time = time;
    }

    public Date getTime() 
    {
        return time;
    }
    public void setJianjie(String jianjie) 
    {
        this.jianjie = jianjie;
    }

    public String getJianjie() 
    {
        return jianjie;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("pic", getPic())
            .append("net", getNet())
            .append("time", getTime())
            .append("jianjie", getJianjie())
            .toString();
    }
}
